Skip to content

fix: setup-cli on Linux musl containers#431

Merged
jgoux merged 2 commits into
mainfrom
codex/use-apk-on-musl
May 20, 2026
Merged

fix: setup-cli on Linux musl containers#431
jgoux merged 2 commits into
mainfrom
codex/use-apk-on-musl

Conversation

@jgoux
Copy link
Copy Markdown
Contributor

@jgoux jgoux commented May 20, 2026

Summary

Fixes setup-cli in Alpine/Linux musl containers after the Supabase CLI v2.99+ release layout introduced a Bun/TypeScript supabase shim alongside supabase-go.

This keeps the v2 action on Bun, but makes the musl paths explicit:

  • Detect Linux musl before running oven-sh/setup-bun and pass the matching bun-linux-*-musl.zip via bun-download-url.
  • Use POSIX sh for composite shell steps so the action can run in minimal Alpine containers without bash.
  • Detect Linux musl in the CLI installer and download the existing .apk release asset for CLI v2.99+.
  • Add the extracted APK usr/bin directory to PATH.
  • Keep existing tar/zip behavior for glibc Linux, macOS, and Windows.

Root Cause

oven-sh/setup-bun does not currently include libc detection in its automatic release asset selection, so Alpine containers received a glibc Bun binary. Separately, setup-cli downloaded the generic Linux .tar.gz Supabase CLI asset, whose supabase shim is glibc-linked in v2.99+; the .apk asset contains the musl-linked shim.

Testing

@jgoux jgoux changed the title Fix setup-cli on Linux musl containers fix: setup-cli on Linux musl containers May 20, 2026
@jgoux jgoux force-pushed the codex/use-apk-on-musl branch from c655115 to 32b9432 Compare May 20, 2026 11:42
@jgoux jgoux marked this pull request as ready for review May 20, 2026 12:31
@jgoux jgoux requested a review from a team as a code owner May 20, 2026 12:31
Copy link
Copy Markdown

@Coly010 Coly010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved with a question

Comment thread src/main.test.ts
@jgoux jgoux merged commit 52a4467 into main May 20, 2026
23 checks passed
@jgoux jgoux deleted the codex/use-apk-on-musl branch May 20, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants